//C++ : $Id$
/*
-----------------------------------------------------------------------
	XR Core
---------------

Copyright 2010 Daher Alfawares

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-----------------------------------------------------------------------
*/


#ifndef __XR_CORE_ENV_HPP
#define __XR_CORE_ENV_HPP

#include <string>

namespace xr { namespace core { namespace env
	{

	std::string get( std::string _Var );    ///< returns the envirnoment variable _Var.
	std::string home();                     ///< returns the home directory path.
	std::string tmp();                      ///< returns the temp directory path.
	std::string os();                       ///< OS envirnoment name.
	std::string path();						///< PATH env var.
	void		path( std::string _Path );	///< sets PATH env var.
	std::string cd();						///< returns the current directory.
	void		cd( std::string );			///< sets the current directory.

	namespace application
		{
		std::string data();					///< returns the application data path.
		std::string common_data();			///< returns the application common data path.
		std::string base();					///< returns the application base path.
		}

	} /* env */ } /* core */ } /* xr */

#endif // __XR_CORE_ENV_HPP

